//
//  BalanceReformer.swift
//  RPay
//
//  Created by CharlieLiao on 2017/7/30.
//  Copyright © 2017年 Charlie. All rights reserved.
//

class BalanceReformer: NSObject, CTAPIManagerDataReformer {
    func manager(_ manager: CTAPIBaseManager!, reformData data: Any!) -> Any!
    {
        let content = (data as! [String:Any])["content"]! as! [String:Any]
        
        var rhAccount: Double = 0
        if let rha = content["rhAccount"] as? String {
            if let rhac = Double(rha) {
                rhAccount = rhac
            }
            
        } else if let rha = content["rhAccount"] as? Double  {
            rhAccount = rha
        }
        
        return rhAccount
    }
}
